<?php

namespace app\common\validate\Business;

// 引入tp的验证器
use think\Validate;

// 用户消费记录验证器
class Record extends Validate
{
    // 验证规则
    protected $rule = [
        'total' => ['require'],
        'busid' => ['require'],
        'content' => ['require']
    ];

    // 错误提示信息
    protected $message = [
        'total.require' => '用户必填',
        'busid.require' => '消费金额必填',
        'content.require' => '消费内容必填',
    ];
}